package com.cictec.middleware.core.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cictec.middleware.core.entity.BusTimingPointSupply;
import com.cictec.middleware.core.service.BusTimingPointService;

/**
 * 包车计划
 * 
 * @author Administrator
 *
 */
@RestController
public class BusTimingPointController {

	private static Logger logger = LoggerFactory.getLogger(BusTimingPointController.class);

	@Autowired
	private BusTimingPointService busTimingPointService;

	
	@RequestMapping(value = "/dc/timingpoint")
	public List<BusTimingPointSupply> getBusPosition(@RequestParam("date") String date, @RequestParam("isSupply") boolean isSupply) {
		return busTimingPointService.selectListBusTimingPointSupply(date, isSupply);
	}

}
